ember-source 1.4.0.beta.4 → 1.4.0.beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/dist/ember.prod.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Portions Copyright 2008-2011 Apple Inc. All rights reserved.
6
6
  * @license Licensed under MIT license
7
7
  * See https://raw.github.com/emberjs/ember.js/master/LICENSE
8
- * @version 1.4.0-beta.4
8
+ * @version 1.4.0-beta.5
9
9
  */
10
10
 
11
11
 
@@ -88,7 +88,7 @@ var define, requireModule, require, requirejs;
88
88
 
89
89
  @class Ember
90
90
  @static
91
- @version 1.4.0-beta.4+pre.88c597fa
91
+ @version 1.4.0-beta.5
92
92
  */
93
93
 
94
94
  if ('undefined' === typeof Ember) {
@@ -115,10 +115,10 @@ Ember.toString = function() { return "Ember"; };
115
115
  /**
116
116
  @property VERSION
117
117
  @type String
118
- @default '1.4.0-beta.4+pre.88c597fa'
118
+ @default '1.4.0-beta.5'
119
119
  @static
120
120
  */
121
- Ember.VERSION = '1.4.0-beta.4+pre.88c597fa';
121
+ Ember.VERSION = '1.4.0-beta.5';
122
122
 
123
123
  /**
124
124
  Standard environmental variables. You can define these in a global `EmberENV`
@@ -20581,7 +20581,7 @@ var get = Ember.get, set = Ember.set, forEach = Ember.EnumerableUtils.forEach,
20581
20581
  ```
20582
20582
 
20583
20583
  The itemController instances will have a `parentController` property set to
20584
- to the `ArrayController` instance.
20584
+ the `ArrayController` instance.
20585
20585
 
20586
20586
  @class ArrayController
20587
20587
  @namespace Ember
@@ -21030,7 +21030,7 @@ function escapeAttribute(value) {
21030
21030
  return string.replace(BAD_CHARS_REGEXP, escapeChar);
21031
21031
  }
21032
21032
 
21033
- // IE 6/7 have bugs arond setting names on inputs during creation.
21033
+ // IE 6/7 have bugs around setting names on inputs during creation.
21034
21034
  // From http://msdn.microsoft.com/en-us/library/ie/ms536389(v=vs.85).aspx:
21035
21035
  // "To include the NAME attribute at run time on objects created with the createElement method, use the eTag."
21036
21036
  var canSetNameOnInputs = (function() {
@@ -21208,7 +21208,11 @@ Ember._RenderBuffer.prototype = {
21208
21208
  },
21209
21209
 
21210
21210
  setClasses: function(classNames) {
21211
- this.classes = classNames;
21211
+ this.elementClasses = null;
21212
+ var len = classNames.length, i;
21213
+ for (i = 0; i < len; i++) {
21214
+ this.addClass(classNames[i]);
21215
+ }
21212
21216
  },
21213
21217
 
21214
21218
  /**
@@ -21262,7 +21266,7 @@ Ember._RenderBuffer.prototype = {
21262
21266
  },
21263
21267
 
21264
21268
  /**
21265
- Adds an property which will be rendered to the element.
21269
+ Adds a property which will be rendered to the element.
21266
21270
 
21267
21271
  @method prop
21268
21272
  @param {String} name The name of the property
@@ -21342,6 +21346,7 @@ Ember._RenderBuffer.prototype = {
21342
21346
  if (classes) {
21343
21347
  buffer += ' class="' + escapeAttribute(classes.join(' ')) + '"';
21344
21348
  this.classes = null;
21349
+ this.elementClasses = null;
21345
21350
  }
21346
21351
 
21347
21352
  if (style) {
@@ -21424,6 +21429,7 @@ Ember._RenderBuffer.prototype = {
21424
21429
  if (classes) {
21425
21430
  $element.attr('class', classes.join(' '));
21426
21431
  this.classes = null;
21432
+ this.elementClasses = null;
21427
21433
  }
21428
21434
 
21429
21435
  if (style) {
@@ -37331,6 +37337,9 @@ Ember.onLoad('Ember.Handlebars', function(Handlebars) {
37331
37337
  target = target.root;
37332
37338
  }
37333
37339
 
37340
+ if (options.boundProperty) {
37341
+ }
37342
+
37334
37343
  Ember.run(function runRegisteredAction() {
37335
37344
  if (target.send) {
37336
37345
  target.send.apply(target, args(options.parameters, actionName));
@@ -37548,6 +37557,7 @@ Ember.onLoad('Ember.Handlebars', function(Handlebars) {
37548
37557
  action.target = { root: root, target: target, options: options };
37549
37558
  action.bubbles = hash.bubbles;
37550
37559
  action.preventDefault = hash.preventDefault;
37560
+ action.boundProperty = options.types[0] === "ID";
37551
37561
 
37552
37562
  var actionId = ActionHelper.registerAction(actionName, action, hash.allowedKeys);
37553
37563
  return new SafeString('data-ember-action="' + actionId + '"');
@@ -39525,6 +39535,8 @@ var Application = Ember.Application = Ember.Namespace.extend(Ember.DeferredMixin
39525
39535
 
39526
39536
  willDestroy: function() {
39527
39537
  Ember.BOOTED = false;
39538
+ // Ensure deactivation of routes before objects are destroyed
39539
+ this.__container__.lookup('router:main').reset();
39528
39540
 
39529
39541
  this.__container__.destroy();
39530
39542
  },
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ember-source
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0.beta.4
4
+ version: 1.4.0.beta.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yehuda Katz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-30 00:00:00.000000000 Z
11
+ date: 2014-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: handlebars-source