Skip to content

Instantly share code, notes, and snippets.

View ColinCampbell's full-sized avatar

Colin Campbell ColinCampbell

View GitHub Profile
diff --git a/frameworks/datastore/models/record.js b/frameworks/datastore/models/record.js
index 58a15aa..8245552 100644
--- a/frameworks/datastore/models/record.js
+++ b/frameworks/datastore/models/record.js
@@ -900,6 +900,29 @@ SC.Record.mixin( /** @scope SC.Record */ {
*/
ignoreUnknownProperties: NO,
+ /**
+ If YES, then searches for records of this type will return
diff --git a/Buildfile b/Buildfile
index 7336ba3..bedf185 100644
--- a/Buildfile
+++ b/Buildfile
@@ -30,9 +30,10 @@ config :bootstrap, :required => [], :use_modules => false
config :jquery, :required => []
config :handlebars, :required => []
config :runtime, :required => [:jquery]
-config :datetime, :required => [:runtime]
+config :'datetime/core', :required => [:runtime]
diff --git a/frameworks/core_foundation/tests/views/template/handlebars.js b/frameworks/core_foundation/tests/views/template/handlebars.js
index 3d56746..b8f203a 100644
--- a/frameworks/core_foundation/tests/views/template/handlebars.js
+++ b/frameworks/core_foundation/tests/views/template/handlebars.js
@@ -633,6 +633,27 @@ test("Child views created using the view helper should have their parent view se
equals(childView, childView.childViews[0].parentView, 'parent view is correct');
});
+test("Child views created using the view helper should have their IDs registered for events", function() {
+ TemplateTests = {};
myPane.didCreateLayer = function() {
this.invokeLater('animate', 1, 'top', 0, 0.3);
};
myPane.append();
// we'll want to make this more specific later
{
"/sproutcore/bootstrap": ".*",
"/sproutcore/jquery": ".*",
"/sproutcore/handlebars": ".*",
"/sproutcore/runtime": ".*",
"/sproutcore/core_foundation": ".*",
"/sproutcore/foundation": ".*",
"/sproutcore/desktop": [
"core.js",
diff --git a/frameworks/runtime/core.js b/frameworks/runtime/core.js
index ce3660c..871ca7a 100644
--- a/frameworks/runtime/core.js
+++ b/frameworks/runtime/core.js
@@ -785,333 +785,3 @@ SC.ORDER_DEFINITION = [ SC.T_ERROR,
SC.T_OBJECT,
SC.T_FUNCTION,
SC.T_CLASS ];
-
diff --git a/frameworks/runtime/ext/array.js b/frameworks/runtime/ext/array.js
new file mode 100644
index 0000000..5c68305
--- /dev/null
+++ b/frameworks/runtime/ext/array.js
@@ -0,0 +1,92 @@
+// ==========================================================================
+// Project: SproutCore Costello - Property Observing Library
+// Copyright: ©2006-2011 Strobe Inc. and contributors.
+// Portions ©2008-2011 Apple Inc. All rights reserved.
// the way it was:
MyApp.Record = SC.Record.extend({
//..
});
MyApp.Record.isPolymorhic = YES;
diff --git a/frameworks/core_foundation/system/event.js b/frameworks/core_foundation/system/event.js
index 570dea5..7b3095d 100644
--- a/frameworks/core_foundation/system/event.js
+++ b/frameworks/core_foundation/system/event.js
@@ -142,18 +142,14 @@ SC.mixin(SC.Event, /** @scope SC.Event */ {
version = parseFloat(SC.browser.version),
didChange = NO;
- if (SC.browser.webkit) {
- // Check Chrome first since it also responds to safari
diff --git a/frameworks/datastore/system/record_array.js b/frameworks/datastore/system/record_array.js
index 0687e78..2f5a109 100644
--- a/frameworks/datastore/system/record_array.js
+++ b/frameworks/datastore/system/record_array.js
@@ -300,15 +300,17 @@ SC.RecordArray = SC.Object.extend(SC.Enumerable, SC.Array,
Extends the standard SC.Enumerable implementation to return results based
on a Query if you pass it in.
- @param {SC.Query} query a SC.Query object
- @param {Object} target the target object to use