发布于 2014-08-26 00:33:15 | 180 次阅读 | 评论: 0 | 来源: 网友投递
这里有新鲜出炉的Ember.JS中文指南,程序狗速度看过来!
Ember JavaScript的MVC框架
Ember.js是一个JavaScript的MVC框架,它由Apple前雇员创建的SproutCore 2.0改名进化而来
Ember.js是一个JavaScript的MVC框架,它由Apple前雇员创建的SproutCore 2.0改名进化而来
Ember.js 1.8.0 beta1 发布,此版本支持 IE 6 和 7,重构了视图布局,更新内容如下:
Remove metamorph
in favor of morph
package (removes the need for <script>
tags in the DOM).
[FEATURE] ember-routing-linkto-target-attribute
[FEATURE] ember-routing-multi-current-when
[FEATURE] ember-routing-auto-location-uses-replace-state-for-history
[FEATURE] ember-metal-is-present
[FEATURE] property-brace-expansion-improvement
Deprecate usage of Internet Explorer 6 & 7.
Deprecate global access to view classes from template (see the deprecation guide).
Deprecate Ember.Set
(note: this is NOT the Ember.set
).
Deprecate Ember.computed.defaultTo
.
Remove long deprecated Ember.StateManager
warnings.
Use intelligent caching for Ember.String
(camelize
, dasherize
, etc.).
Use intelligent caching for container normalization.
Polyfill Object.create
(use for new caching techniques).
Refactor internals to make debugging easier (use a single assignment per var
statement).
[BREAKING] Remove deprecated controller action lookup. Support for pre-1.0.0 applications with actions in the root of the controller (instead of inside the actions
hash) has been removed.
Ember.js 1.7.0 更新内容如下:
Ember 1.7.0 (August 19, 2014)
Update Ember.computed.notEmpty
to properly respect arrays.
Bind tabindex
property on LinkView.
Update to RSVP 3.0.13 (fixes an error with RSVP.hash
in IE8 amongst other changes).
Fix incorrect quoteless action deprecation warnings.
Prevent duplicate message getting printed by errors in Route hooks.
Deprecate observing container views like arrays.
Add catch
and finally
to Transition.
[BUGFIX] paramsFor: don’t clobber falsy params.
[BUGFIX] Controllers with query params are unit testable.
[BUGFIX] Controllers have new QP values before setupController.
[BUGFIX] Fix initial render of {{input type=bound}} for checkboxes.
[BUGFIX] makeBoundHelper supports unquoted bound property options.
[BUGFIX] link-to helper can be inserted in DOM when the router is not present.
[PERFORMANCE] Do not pass arguments
around in a hot-path.
Remove Container.defaultContainer.
Polyfill contains for older browsers.
[BUGFIX] Ensure that triggerEvent
handles all argument signatures properly.
[BUGFIX] Stub meta on AliasedProperty (fixes regression from beta.2 with Ember Data).
[DOC] Fixed issue with docs showing 'Ember.run' as 'run.run'.
[BUGFIX] SimpleHandlebarsView should not re-render if normalized value is unchanged.
Allow Router DSL to nest routes via this.route
.
[BUGFIX] Don't pass function UNDEFINED as oldValue to computed properties.
[BUGFIX] dramatically improve performance of eachComputedProperty.
[BUGFIX] Prevent strict mode errors from superWrapper.
Deprecate Ember.DeferredMixin and Ember.Deferred.
Deprecate .then
on Ember.Application.
Revert ember-routing-consistent-resources.
[BUGFIX] Wrap es3 keywords in quotes.
[BUGFIX] Use injected integration test helpers instead of local functions.
[BUGFIX] Add alias descriptor, and replace Ember.computed.alias
with new descriptor.
[BUGFIX] Fix {{#with view.foo as bar}}
.
[BUGFIX] Force remove required
attribute for IE8.
[BUGFIX] Controller precendence for Ember.Route.prototype.render
updated.
[BUGFIX] fixes variable argument passing to triggerEvent helper.
[BUGFIX] Use view:toplevel for {{view}} instead of view:default.
[BUGFIX] Do not throw uncaught errors mid-transition.
[BUGFIX] Don't assume that the router has a container.
Fix components inside group helper.
[BUGFIX] Fix wrong view keyword in a component block.
Update to RSVP 3.0.7.
[FEATURE query-params-new]
[FEATURE ember-routing-consistent-resources]
uuid
is now consistently used across the project.
Ember.uuid
is now an internal function instead of a property on Ember
itself.
[BUGFIX] sync back burner: workaround IE's issue with try/finally without Catch. Also no longer force deoptimization of the run loop queue flush.
[BREAKING BUGFIX] An empty array is treated as falsy value in bind-attr
to be in consistent with if
helper. Breaking for apps that relies on the previous behaviour which treats an empty array as truthy value in bind-attr
.
[BREAKING BUGFIX] On Controllers, the content property is now derived from model. This reduces many caveats with model/content, and also sets a simple ground rule: Never set a controllers content, rather always set it's model and ember will do the right thing.