condo_interface 1.0.0 → 1.0.1

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.
@@ -20,12 +20,12 @@
20
20
  (function (factory) {
21
21
  if (typeof define === 'function' && define.amd) {
22
22
  // AMD
23
- define(['jquery', 'condo_controller'], factory);
23
+ define(['jquery', 'condo-controller'], factory);
24
24
  } else {
25
25
  // Browser globals
26
- factory(jQuery, window.CondoController);
26
+ factory(jQuery);
27
27
  }
28
- }(function ($, uploads, undefined) {
28
+ }(function ($) {
29
29
  'use strict';
30
30
 
31
31
 
@@ -94,8 +94,10 @@
94
94
  // in the mouse model, set the capture or add a document-level event handlers if this is our first down point
95
95
  // nothing is required for the iOS touch model because capture is implied on touchstart
96
96
  //
97
- if (this.msSetPointerCapture)
98
- this.msSetPointerCapture(pointerId);
97
+ try {
98
+ if (this.msSetPointerCapture)
99
+ this.msSetPointerCapture(pointerId);
100
+ } catch(e) {} // was getting an 'SCRIPT16389: Unspecified error' on IE10 Win7 Preview @ 16/11/2012
99
101
 
100
102
 
101
103
  } else if (theEvtObj.type.match(/move$/i)) {
@@ -367,9 +369,16 @@
367
369
  });
368
370
 
369
371
 
372
+ //
373
+ // Notify on errors
374
+ // TODO:: need an unobtrusive notification system for failed adds
375
+ //
370
376
  scope.$on('coFileAddFailed', function() {
371
- // TODO:: need an unobtrusive notification system for failed adds
372
- // alert('Failed to add file: ' + broadcast.message.reason);
377
+ alert('Failed to add file: ' + broadcast.message.reason);
378
+ });
379
+
380
+ scope.$on('coComponentLoadFailed', function() {
381
+ alert('Error: failed to load ' + broadcast.message[1] + ' (' + broadcast.message[0] + ')');
373
382
  });
374
383
 
375
384
 
@@ -443,7 +452,7 @@
443
452
  scope.$watch('upload.progress', function(newValue, oldValue) {
444
453
  scope.progress = newValue / scope.upload.size * 100;
445
454
  });
446
-
455
+
447
456
 
448
457
  scope.animate_remove = function() {
449
458
  scope.abort(scope.upload);
@@ -1,3 +1,3 @@
1
1
  module CondoInterface
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: condo_interface
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-08 00:00:00.000000000 Z
12
+ date: 2012-11-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails