我拥有从服务器中回收的物品。 我愿发现一些变化,以相应地改变统一分类制度。
我能够发现 d脏记录(新、更新),但我不知道如何发现删除,我也需要处理。
An illustration of my problem: http://jsfiddle.net/MikeAski/bBUB2/
任何想法?
我拥有从服务器中回收的物品。 我愿发现一些变化,以相应地改变统一分类制度。
我能够发现 d脏记录(新、更新),但我不知道如何发现删除,我也需要处理。
An illustration of my problem: http://jsfiddle.net/MikeAski/bBUB2/
任何想法?
最后,我找到了一条出路:。
This solution is less intrusive on models than the one suggested by jsworkman. Not fully satisfying, but works as expected... :-/
仍然有兴趣更好地执行而不是注重工作的解决办法!
你们需要做两件事:
Because of your call to each post s isDirty
function, you are only checking if the current posts have been updated or created. You basically need a snapshot of what posts exist when it is clean, and then you can compare if any of those have been deleted.
你们也可以保存新增加的员额记录。 这样,删除一个字句时,你就可以核对是否添加(添加一个<>条码>:新条码>的旗帜或类似的国旗)。 删除后,如果可以检查<条码>---------------------/代码>,并用其他方式加以标明,即可将其删除。
为了做这些事情,你将需要一项职能,即检查作为第一次ir脏检查的删除情况,然后检查你目前那样的员额。
I m stuck. Perhaps someone is able to point me in the right direction to solve my problem. I am trying to use third party stencil components in my ember app. Build is ok, but when i visit the app, ...
I have a customizable navigation tree that can be nested 3 levels deep. Templates: <script type="text/x-handlebars" data-template-name="NavItemView"> <a {{bindAttr href="href" class="...
If I have a controller: HTH.todosController = SC.ArrayProxy.create({ content: HTH.store.find(HTH.Todo) }); I can display all todos doing this: ... <script type="text/x-handlebars"> {{#...
I create topbar menu using twitter-bootstrap and It working fine .topbar .topbar-inner .container-fluid {{#view Mediawrap.menuView id="menuView"}} = link_to Mediawrap , root_path, {...
I know that ember js is good for single page apps and it appears that you can localize ember js app to a single dom container rather than the whole page, so I m wondering if ember js would be a good ...
What is the correct way to bind from one model to another when the models are stored within an array? Typically I d imagine that this would be a Controller s content array, but to keep the example ...
Possible Duplicate: Using Ember.js, how do I run some js after a view is rendered? I use JWPlayer to show video on my site and JWPlayer use javascript to create viewer. I have to run JWPlayer ...
I just having a little trouble to implement a special kind of view for Ember, I m digging on the source for days but can t find how to make it work... Can you take a look and tell me what s wrong? It ...